//
//  TMCommonUploadModel.h
//  Cordova
//
//  Created by cy on 2023/3/15.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#pragma mark -------- 转码新逻辑model ---------
@class TMCommonUploadConfigModel,TMCommonUploadTemplateModel;
@interface TMCommonUploadModel : NSObject
///客户端音频是否开启转码 0-关闭 1-开启
@property (nonatomic, assign) NSInteger is_audio_client_transcode;
///客户端视频是否开启转码 0-关闭 1-开启
@property (nonatomic, assign) NSInteger is_video_client_transcode;
///基础配置  涉及secretKey，都采用base64加密了一次
@property (nonatomic, strong) TMCommonUploadConfigModel * config;
///转码模板
@property (nonatomic, strong) TMCommonUploadTemplateModel * templateM;
///转码方式 0-不转码 1-天翼云（托管模式）转码 2-OSS转码 3-阿里vod转码
@property (nonatomic, assign) NSInteger transcode_type;
///上传类型  local-本地 qn-七牛 oss-OSS ftp-ftp上传 osstyy-天翼云
@property (nonatomic, copy) NSString *upload_type;

@end


@interface TMCommonUploadConfigModel : NSObject
///天翼云
@property (nonatomic, copy) NSString *accessKey;
@property (nonatomic, copy) NSString *secretKey;
///oss配置
@property (nonatomic, copy) NSString *accessid;
@property (nonatomic, copy) NSString *full_name;//完整的上传文件名 对应阿里oss的key
@property (nonatomic, copy) NSString *host;//请求阿里oss完整域名
@property (nonatomic, copy) NSString *policy;
@property (nonatomic, copy) NSString *region;
@property (nonatomic, copy) NSString *signature;
@property (nonatomic, copy) NSString *upload_type;
///天翼云与阿里云共用
@property (nonatomic, copy) NSString *cdn;
@property (nonatomic, copy) NSString *endpoint;
@property (nonatomic, copy) NSString *bucket;
@end

@class TMCommonUploadTemplateVideoModel,TMCommonUploadTemplatAudioeModel;
@interface TMCommonUploadTemplateModel : NSObject
@property (nonatomic, strong) TMCommonUploadTemplateVideoModel * video_client_template;
@property (nonatomic, strong) TMCommonUploadTemplatAudioeModel * audio_client_template;
@end

@interface TMCommonUploadTemplateVideoModel : NSObject
@property (nonatomic, copy) NSString *template_groupId;
@property (nonatomic, copy) NSString *template_intro;
@property (nonatomic, copy) NSString *title;
@end

@interface TMCommonUploadTemplatAudioeModel : NSObject
@property (nonatomic, copy) NSString *template_groupId;
@property (nonatomic, copy) NSString *template_intro;
@property (nonatomic, copy) NSString *title;
@end

#pragma mark --------- END ---------




NS_ASSUME_NONNULL_END
